﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace Gui.Controls
{
    public partial class MetalButton : UserControl
    {
        public MetalButton()
        {
            InitializeComponent();
        }

        public string MouseHoverImageName;
        public string MouseDownImageName;
        public string DefaultImageName;

        private void MetalButton_MouseEnter(object sender, EventArgs e)
        {
            this.BackgroundImage = Image.FromFile(this.MouseHoverImageName);
        }

        private void MetalButton_MouseLeave(object sender, EventArgs e)
        {
            this.BackgroundImage = Image.FromFile(this.DefaultImageName);
        }

        private void MetalButton_MouseDown(object sender, MouseEventArgs e)
        {
            this.BackgroundImage = Image.FromFile(this.MouseDownImageName);
        }

        private void MetalButton_MouseUp(object sender, MouseEventArgs e)
        {
            this.BackgroundImage = Image.FromFile(this.MouseHoverImageName);
        }
    }
}
